import request from '@/request'

export function getCommentsByArticle (id) {
  return request({
    url: `/api/comments/article`,
    method: 'post',
    data: { id }
  })
}

export function publishComment (comment) {
  return request({
    url: '/api/comments/edit',
    method: 'post',
    data: comment
  })
}
